package com.yangrong.newsservice.service.impl;

import com.yangrong.newsservice.dao.TbArticlesDraftDao;
import com.yangrong.newsservice.entity.TbArticlesDraftEntity;
import com.yangrong.newsservice.service.TbArticlesDraftService;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yangrong.common.utils.PageUtils;
import com.yangrong.common.utils.Query;


@Service("tbArticlesDraftService")
public class TbArticlesDraftServiceImpl extends ServiceImpl<TbArticlesDraftDao, TbArticlesDraftEntity> implements TbArticlesDraftService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbArticlesDraftEntity> page = this.page(
                new Query<TbArticlesDraftEntity>().getPage(params),
                new QueryWrapper<TbArticlesDraftEntity>()
        );

        return new PageUtils(page);
    }

}